{include file="common/html" /}
    <title>COPPER - TENNO 市场</title>
{include file="common/head" /}
{include file="common/top_left" /}
{include file="common/top_right" /}
    <ul class="nav">
        {if !empty($Think.session.user_info)}
        <li class="nav-item">
            <a href="/myMod">
                <i class="la la-hand-paper-o"></i>
                <p>我发布的物品</p>
                <span class="badge badge-danger">
                        {$Think.session.user_send_count}
                    </span>
            </a>
        </li>
        {/if}
        <li class="nav-item">
            <a href="/">
                <i class="la la-bomb"></i>
                <p>MOD</p>
                <span class="badge badge-count">
                    {$Think.session.count_set.mod_count}
                </span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/weapon">
                <i class="la la-plane"></i>
                <p>PRIME 武器 / 守护</p>
                <span class="badge badge-count">
                    {$Think.session.count_set.weapon_count}
                </span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/warFrame">
                <i class="la la-pied-piper-alt"></i>
                <p>PRIME 战甲</p>
                <span class="badge badge-count">
                    {$Think.session.count_set.war_frame_count}
                </span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/riven">
                <i class="la la-square-o"></i>
                <p>RIVEN</p>
                <span class="badge badge-count">
                   {$Think.session.count_set.riven_count}
                </span>
            </a>
        </li>
        <li class="nav-item active">
            <a href="/other">
                <i class="la la-pagelines"></i>
                <p>其他物品</p>
                <span class="badge badge-count">
                    {$Think.session.count_set.other_count}
                </span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/messageBoard">
                <i class="la la-paint-brush"></i>
                <p>留言板</p>
                <span class="badge badge-count">
                    {$Think.session.count_set.message_count}
                </span>
            </a>
        </li>
        <li class="nav-item update-pro">
            <button  data-toggle="modal" data-target="#modalUpdate">
                <i class="la la-hand-pointer-o"></i>
                <p>关于作者</p>
            </button>
        </li>
    </ul>
    </div>
    </div>
    <div class="main-panel"  style="overflow-x: hidden;">
    <div class="content">
    <div class="container-fluid">
        <h4 class="page-title">COPPER \ SELLERS</h4>
        <div class="card">
            <div class="card-header">
                <div class="card-title">
                    <a href="/sendOther/copper" class="btn btn-danger">
                        我要售卖物品
                    </a>
                    |
                    <a href="/other" class="btn btn-primary">
                        杂项
                    </a>
                    <a href="/goldGarbage" class="btn btn-primary">
                        金垃圾
                    </a>
                    <a href="/silverGarbage" class="btn btn-primary">
                        银垃圾
                    </a>
                    <a href="#" class="btn btn-dark">
                        铜垃圾
                    </a>
                    <a href="/sculpt" class="btn btn-primary">
                        雕塑
                    </a>
                    <a href="/kuWa" class="btn btn-primary">
                        库娃
                    </a>
                    <a href="/kuBo" class="btn btn-primary">
                        库伯
                    </a>
                </div>
            </div>
            <div class="card-body">
                <table class="table table-hover table-responsive" style="text-align: center;">
                    <thead>
                    <tr>
                        <th scope="col" width="10%">游戏 ID</th>
                        <th scope="col" width="10%">游戏状态</th>
                        <th scope="col" width="10%">单价 / 组</th>
                        <th scope="col" width="10%">数量</th>
                        <th scope="col" width="10%">发布时间</th>
                        <th scope="col" width="10%">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name='other_list' id='v'}
                    <tr>
                        <td>
                            <b>{$v.uid.game_id}</b>
                        </td>
                        <td>
                            {eq name="v['uid']['game_state']" value="1"}
                            <b style="color: forestgreen;">
                                在线中 ...
                            </b>
                            {else/}
                            <b style="color: red;">
                                离线中 ...
                            </b>
                            {/eq}
                        </td>
                        <td>
                            <b style="color: red;font-size: 20px;">{$v.unit_price}</b>
                            Platinum
                        </td>
                        <td>
                            <b>{$v.num}</b>
                            组
                        </td>
                        <td>
                            {$v.update_time}
                        </td>
                        <td>
                            <input style="width: 10%;position: absolute;z-index: -999" id="copy{$v.id}" type="text"
                                   value="/w {$v['uid']['game_id']} 老铁！我想买你的 铜垃圾 用 {$v.unit_price} 白金 来自 TENNO市场（tenno.luck7.top）"
                            >
                            <button class="btn btn-success" onclick="copyText({$v.id})">
                                <i class="la la-comment-o" style="font-size: 18px;"></i>
                            </button>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div id="page_list">
                    {$other_list|raw}
                </div>
                <style>
                    div#page_list li span{
                        border-radius: 100px !important;
                        margin: 0 2px;
                        color: #777777;
                        border-color: #ddd;
                        position: relative;
                        display: block;
                        padding: .5rem .75rem;
                        line-height: 1.25;
                        background-color: #fff;
                        border: 1px solid #dee2e6;
                    }
                    div#page_list li a{
                        border-radius: 100px !important;
                        margin: 0 2px;
                        color: #777777;
                        border-color: #ddd;
                        position: relative;
                        display: block;
                        padding: .5rem .75rem;
                        line-height: 1.25;
                        background-color: #fff;
                        border: 1px solid #dee2e6;
                    }
                    div#page_list .active span{
                        background: #1D62F0;
                        border-color: #1D62F0;
                        color: #ffffff;
                    }
                </style>
            </div>
        </div>
    </div>
    </div>
{include file="common/footer" /}